#if !defined(AFX_REMOTETIMEPLAY_H__5BB071F8_9C05_4D0E_8738_580396A33D1A__INCLUDED_)
#define AFX_REMOTETIMEPLAY_H__5BB071F8_9C05_4D0E_8738_580396A33D1A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RemoteTimePlay.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CRemoteTimePlay dialog

class CRemoteTimePlay : public CDialog
{
// Construction
public:
	CRemoteTimePlay(CWnd* pParent = NULL);   // standard constructor

	HWND m_hPareTabWnd;
	HWND m_hPareDlgWnd;
	LONG lHandle;
	BOOL m_bFullScreen;
	CRect m_rcScreen;
	CRect m_rcParent;
	CRect m_rcPareDlg;
	CRect m_rcPareTab;
	CRect m_rcWnd;
	BOOL m_bSound;
	LONG m_lStartChan;
	int iChannel;
	LONG ServerID;
	BOOL m_bPause;
	BOOL m_bDown;
	LONG m_lLoadHandle;
	BOOL m_bTimeSave;

	void SetParentWnd(HWND *hhWnd, int iParentNum);
	void F_StopPlay();
	void F_InitUI();
	void F_EnableFlashWnd(BOOL bEnable);
	void F_ShowNormal();
	void F_ShowFullScreen();
	BOOL IsInWnd(CPoint point);
	void F_SetPlayState();
	
// Dialog Data
	//{{AFX_DATA(CRemoteTimePlay)
	enum { IDD = IDD_SUBDLG_REMOTETIME };
	CStatic	m_PlayWnd;
	CSliderCtrl	m_ctlVolume;
	CComboBox	m_ServerName;
	CComboBox	m_ChannelName;
	CTime	m_ctDateStart;
	CTime	m_ctDateStop;
	CTime	m_ctTimeStart;
	CTime	m_ctTimeStop;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRemoteTimePlay)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	protected:
		HICON m_hSoundStartIcon;
		HICON m_hSoundStopIcon;
		
		HICON m_hPlayEnableIcon;
		HICON m_hPlayDisableIcon;
		
		HICON m_hPauseEnableIcon;
		HICON m_hPauseDisableIcon;
		
		HICON m_hStopEnableIcon;
		HICON m_hStopDisableIcon;
		
		HICON m_hGotoHeadDisableIcon;
		HICON m_hGotoHeadEnableIcon;
		
		HICON m_hGotoTailEnableIcon;
		HICON m_hGotoTailDisableIcon;
		
		HICON m_hFastDisableIcon;
		HICON m_hFastEnableIcon;
		
		HICON m_hSlowDisableIcon;
		HICON m_hSlowEnableIcon;
		
		HICON m_hStepEnableIcon;
		HICON m_hStepDisableIcon;
		
		HICON m_hStepBackEnableIcon;
		HICON m_hStepBackDisableIcon;
		
		HICON m_hCaptureIcon;
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CRemoteTimePlay)
	virtual BOOL OnInitDialog();
	afx_msg void OnStop();
	afx_msg void OnSlow();
	afx_msg void OnFast();
	afx_msg void OnCappic();
	afx_msg void OnStep();
	afx_msg void OnSound();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnPlayTime();
	virtual void OnCancel();
	afx_msg void OnSelchangeComboserver();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtondownload();
	afx_msg void OnButtonloadsave();
	afx_msg void OnGotostart();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_REMOTETIMEPLAY_H__5BB071F8_9C05_4D0E_8738_580396A33D1A__INCLUDED_)
